package Class.Advance.Static.Basis;

public class Student {
    private String name;
    private int age;
    private static String teacherName = "Alic";

    public Student() {
    }

    public Student(String name, int age) {
        this.age = age;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getTeacherName() {
        return teacherName;
    }

    public static void setTeacherName(String teacherName) {
        Student.teacherName = teacherName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String toString() {
        return "STUDENT{" +
                "name=" + name +
                ", age=" + age +
                ", teacherName=" + teacherName +
                '}';
    }
}
